import { readonly, deprecate } from 'core-decorators'

class Person {
    @readonly
    name() {
        return 'li hua'
    }

    @deprecate('即将在下一版本弃用', { url: 'https://www.baidu.com' })
    getName() {
        return 'li hua'
    }
}

const p = new Person()
console.log(p.name());
console.log(p.getName());